/**
 * @projectName study_java
 * @package State
 * @className State.Test
 */
package State;

/**
 * Test
 * @description 测试类
 * @author answer_wx
 * @date 2022/6/29 15:59
 * @version 1.0
 */
public class Test {
    public static void main(String[] args) {
        /**
         * 紧急项目
         */
        Work emergency = new Work();
        emergency.setHour(9);
        emergency.writeProgram();
        emergency.setHour(11);
        emergency.writeProgram();
        emergency.setHour(12);
        emergency.writeProgram();
        emergency.setHour(15);
        emergency.writeProgram();
        emergency.setHour(20);
        emergency.writeProgram();
        emergency.setHour(21);
        emergency.writeProgram();
        System.out.println("----------分隔符---------");
        /**
         * 正常项目
         */
        Work normal = new Work();
        normal.setHour(9);
        normal.writeProgram();
        normal.setHour(11);
        normal.writeProgram();
        normal.setHour(12);
        normal.writeProgram();
        normal.setHour(15);
        normal.writeProgram();
        normal.setHour(19);
        normal.setFinish(true);
        normal.writeProgram();
        normal.setHour(21);
        normal.writeProgram();
        normal.setHour(23);
        normal.writeProgram();
    }
}